{#{% include 'header.html' %}#}
<!DOCTYPE html>
<html>
    <head>
        <title>部 署 平 台</title>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        {% set pro_name = tasks['pro_name'] %}
        {% set nginx_api_proxy = tasks['nginx_api_proxy'] %}
        {% set deploy_info_list = tasks['deploy_info_list'] %}
        {% set batch_deploy_status = tasks['batch_deploy_status'] %}
        {% set progress = tasks['progress'] %}
        {% set done_num = tasks['done_num'] %}
        {% set all_num = tasks['all_num'] %}
        {% set running_serial_num = tasks['running_serial_num'] %}
        {% set deploy_name_list_str = tasks['deploy_name_list_str'] %}
        {% set module_is_run = tasks['module_is_run'] %}
        {% set sonar_url = tasks['sonar_url'] %}
        {% set jacoco_report_url = tasks['jacoco_report_url'] %}
        {% set apiTest_report_url = tasks['apiTest_report_url'] %}
        <link href="/{{nginx_api_proxy}}/static/css/bootstrap.min.css" rel="stylesheet">
        <link href="/{{nginx_api_proxy}}/static/css/sweetalert.min.css" rel="stylesheet"/>
        <link href="/{{nginx_api_proxy}}/static/css/font-awesome.css" rel="stylesheet"/>
        <link href="/{{nginx_api_proxy}}/static/css/dataTables.bootstrap.css" rel="stylesheet"/>
{#        <style>#}
{#            * {font-size: 18px}#}
{#        </style>#}
    </head>

    <body>
        <div id="page-wrapper">
            <div class="header" align="center">
                <h1 class="page-header"> 部 署 平 台&nbsp;-&nbsp;{{pro_name}}&nbsp;项&nbsp;目 </h1>
            </div>
            <div id="page-inner">
                <div class="col-lg-9 col-md-9 col-sm-9" style="margin-left:10%">
                     <div class="panel panel-primary">
                         <div class="panel-heading" align="center" style="font-size:18px;font-weight: bold;">
                            相&nbsp;&nbsp;&nbsp;关&nbsp;&nbsp;操&nbsp;&nbsp;&nbsp;作
                         </div>
                         <div class="panel-body">
                             <div class="row">
                                 <div class="form-group" align="center">
                                    <div class="col-lg-3 col-md-3 col-sm-3">
                                     {% if batch_deploy_status %}
                                        <button id="on_line_all" type="button" class="btn btn-primary form-control" style="font-size:15px" disabled> 上 线 所 有 模 块 </button>
                                     {% else %}
                                        <button id="on_line_all" type="button" class="btn btn-primary form-control" style="font-size:15px" onclick="update_deploy_status_all('{{pro_name}}','true','{{nginx_api_proxy}}')"> 上 线 所 有 模 块 </button>
                                     {% endif %}
                                 </div>
                                    <div class="col-lg-3 col-md-3 col-sm-3">
                                     {% if batch_deploy_status %}
                                        <button id="off_line_all" type="button" class="btn btn-primary form-control" style="font-size:15px" disabled> 下 线 所 有 模 块 </button>
                                     {% else %}
                                         <button id="off_line_all" type="button" class="btn btn-primary form-control" style="font-size:15px" onclick="update_deploy_status_all('{{pro_name}}','false','{{nginx_api_proxy}}')"> 下 线 所 有 模 块 </button>
                                     {% endif %}
                                 </div>
                                    <div class="col-lg-3 col-md-3 col-sm-3">
                                     <button id="stop_status_btn" type="button" class="btn btn-primary form-control" style="font-size:15px" onclick="stop_run_status_all('{{ pro_name }}','{{ nginx_api_proxy }}')"> 停 止 运 行 状 态</button>
                                 </div>
                                    <div class="col-lg-3 col-md-3 col-sm-3">
                                     <button id="history_report_url" type="button" class="btn btn-primary form-control" style="font-size:15px" onclick="window.open('/{{ nginx_api_proxy }}/DEPLOY/show_deploy_log/{{ pro_name }}')"> 查 看 部 署 日 志</button>
                                 </div>
                                 </div>
                             </div>
                             <div class="row" style="margin-top:1.5%">
                                <div class="form-group" align="center">
                                    <div class="col-lg-3 col-md-3 col-sm-3">
                                     {% if batch_deploy_status %}
                                         <button id="batch_deploy" type="button" class="btn btn-primary form-control" style="font-size:15px" disabled> 执 行 批 量 部 署 </button>
                                     {% else %}
                                         <button id="batch_deploy" type="button" class="btn btn-primary form-control" style="font-size:15px" onclick="batch_deploy('{{pro_name}}','{{nginx_api_proxy}}')"> 执 行 批 量 部 署 </button>
                                     {% endif %}
                                    </div>
                                    {# 批量 进度条 #}
                                    <div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:0.5%">
                                     {% if batch_deploy_status %}
                                         <div id="progress_bar_active_batch" class="progress progress-striped form-control active">
                                            {% if progress in range(0,30)  %}
                                                <div id="progress_bar_batch" class="progress-bar progress-bar-danger form-control" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                            {% elif progress in range(30,60)  %}
                                                <div id="progress_bar_batch" class="progress-bar progress-bar-warning form-control" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                            {% else %}
                                                <div id="progress_bar_batch" class="progress-bar progress-bar-success form-control" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                            {% endif %}
                                         </div>
                                     {% else %}
                                         {# 当前未执批量部署，则进度条默认拉满 #}
                                         <div id="progress_bar_active_batch" align="center" class="progress">
                                            <div id="progress_bar_batch" class="progress-bar progress-bar-success form-control" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 100%;"></div>
                                         </div>
                                     {% endif %}
                                    </div>
                                    {# 进度条百分比统计 100 % -- ( 999 / 1000 ) #}
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="margin-top:0.5%">
                                    <font color="#844200"><label id="progress_label">
                                        {% if batch_deploy_status %} {{progress}} % --（ {{done_num}} / {{all_num}} ）{% endif %}
                                    </label></font>
                                 </div>
                                </div>
                             </div>
                         </div>
                     </div>

                  </div>
            </div>

            <div id="page-inner2">
               <div class="row">
                   <div class="col-lg-11 col-md-11 col-sm-11" style="margin-left:3%">
                        <div class="panel panel-primary">
                            <div id="statist_data" class="panel-heading" align="center" style="font-size:20px; font-weight: bold;">
                                部 署 模 块
                            </div>
                            <div class="panel-body">
                                <div class="card">
                                    <div class="card-body card-padding">
                                        <div class="table-responsive">
                                            <table class="table table-striped">
                                                <thead>
                                                <tr>
                                                    <th style="font-size:18px;" class="text-center">状 态</th>
                                                    <th style="font-size:18px;" class="text-center">序 号</th>
                                                    <th style="font-size:18px;" class="text-center">环 境</th>
                                                    <th style="font-size:18px;" class="text-center">部 署 名 称</th>
                                                    <th style="font-size:18px;" class="text-center">当 前 分 支</th>
                                                    <th style="font-size:18px;" class="text-center">部 署 结 果</th>
                                                    <th style="font-size:18px;" class="text-center">部 署 时 间</th>
                                                    <th style="font-size:18px;" class="text-center">操 作</th>
                                                    <th style="font-size:18px;" class="text-center">Token</th>
                                                </tr>
                                                </thead>
                                                <tbody id="deploy_tbody">
                                                {% for deploy_info in deploy_info_list %}
                                                    {% set _id = deploy_info["_id"] %}
                                                    {% set serial_num = deploy_info["serial_num"] %}
                                                    {% set deploy_name = deploy_info["deploy_name"] %}
                                                    {% set branch = deploy_info["branch"] %}
                                                    {% set build_env = deploy_info["build_env"] %}
                                                    {% set deploy_status = deploy_info["deploy_status"] %}
                                                    {% set jacoco_status = deploy_info["jacoco_status"] %}
                                                    {% set deploy_result = deploy_info["deploy_result"] %}
                                                    {% set deploy_time = deploy_info["deploy_time"] %}
                                                    {% set run_status = deploy_info["run_status"] %}
                                                    {% set deploy_status = deploy_info['deploy_status'] %}
                                                    {% set progress = deploy_info["progress"] %}
                                                    <tr>
                                                        {# 部署状态 #}
                                                        {% if batch_deploy_status %}
                                                            <td class="text-center" style="width:50px; font-size:15px; color:#4D0000; display:table-cell; vertical-align:middle;" id="deploy_status_{{_id}}" disabled >
                                                                {% if deploy_status %}<font color="#00A600">上 线</font>{% else %}<font color="#DC143C">下 线</font>{% endif %}
                                                            </td>
                                                        {% else %}
                                                            <td class="text-center" style="width:50px; font-size:15px; color:#4D0000; display:table-cell; vertical-align:middle;" onclick="update_deploy_status('{{pro_name}}','{{nginx_api_proxy}}','{{deploy_name}}','{{_id}}')" id="deploy_status_{{_id}}">
                                                                {% if deploy_status %}<font color="#00A600">上 线</font>{% else %}<font color="#DC143C">下 线</font>{% endif %}
                                                            </td>
                                                        {% endif %}

                                                        {# 部署序号 #}
                                                        <td class="text-center" style="width: 50px; font-size:16px; color:#9F5000; display:table-cell; vertical-align:middle;" id="serial_num_{{_id}}">{{ serial_num }}</td>

                                                        {# 构建环境 #}
                                                        <td class="text-center" style="width: 50px; font-size:16px; color:#4D0000; display:table-cell; vertical-align:middle;" id="build_env_{{_id}}">{{ build_env }}</td>

                                                        {# 部署名称 #}
                                                        <td class="text-center" style="width: 200px; font-size:16px; color:#5151A2; display:table-cell; vertical-align:middle;" id="deploy_name_{{_id}}">{{ deploy_name }}</td>

                                                        {# 当前分支 #}
                                                        <td class="text-center" style="width: 100px; font-size:16px; color:#8F4586; display:table-cell; vertical-align:middle;" id="branch_{{_id}}">{{ branch }}</td>

                                                        {# 部署结果 ( 批量部署时，等待部署的模块 部署结果显示'等 待 部 署' ) #}
                                                        <td class="text-center" style="width: 100px; color:#4D0000; display:table-cell; vertical-align:middle;" id="deploy_result_{{_id}}">
                                                            {# 批量运行启动 且为 上线状态 #}
                                                            {% if batch_deploy_status and deploy_status %}
                                                                {# 1.批量运行中，已经执行完毕的模块 #}
                                                                {% if serial_num < running_serial_num %}
                                                                    {% if "部 署 成 功" in deploy_result %}
                                                                        <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-success"> {{ deploy_result }} </span>
                                                                    {% else %}
                                                                        <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-danger">{{ deploy_result }}</span>
                                                                    {% endif %}
                                                                {# 2.批量运行中，正在进行部署的模块 #}
                                                                {% elif serial_num == running_serial_num %}
                                                                    <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-warning"> 部 署 中 ... </span>
                                                                {# 3.批量运行中，还未执行的模块 #}
                                                                {% else %}
                                                                    <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-info"> 等 待 部 署 </span>
                                                                {% endif %}
                                                            {% else %}
                                                                {% if "----" in deploy_result %}
                                                                    {{ deploy_result }}
                                                                {% elif "部 署 成 功" in deploy_result %}
                                                                    <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-success"> {{ deploy_result }} </span>
                                                                {% elif "部 署 中 ..." in deploy_result %}
                                                                    <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-warning"> {{ deploy_result }} </span>
                                                                {% else %}
                                                                    <span id="exec_result_{{_id}}" style="font-size:14px" class="label label-danger">{{ deploy_result }}</span>
                                                                {% endif %}
                                                            {% endif %}
                                                        </td>

                                                        {# 部署时间 ( 批量部署时，等待部署的模块 不显示部署时间 ) #}
                                                        <td class="text-center" style="width: 150px; font-size:16px; color:#4D0000; display:table-cell; vertical-align:middle;" id="deploy_time_{{_id}}">
                                                            {# 批量运行启动 且为 上线状态 #}
                                                            {% if batch_deploy_status and deploy_status and serial_num >= running_serial_num %}
                                                            {% else %}
                                                                {{ deploy_time }}
                                                            {% endif %}
                                                        </td>

                                                        {# 操作 #}
                                                        <td class="text-center" style="width: 200px; display:table-cell; vertical-align:middle;">
                                                            {% if run_status %}
                                                                {% if progress in range(0,30)  %}
                                                                    <div id="progress_bar_active_{{_id}}" class="progress progress-striped active">
                                                                        <div id="progress_bar_{{_id}}" class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                                                    </div>
                                                                {% elif progress in range(30,60)  %}
                                                                    <div id="progress_bar_active_{{_id}}" class="progress progress-striped active">
                                                                        <div id="progress_bar_{{_id}}" class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                                                    </div>
                                                                {% else %}
                                                                    <div id="progress_bar_active_{{_id}}" class="progress progress-striped">
                                                                        <div id="progress_bar_{{_id}}" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;"></div>
                                                                    </div>
                                                                {% endif %}
                                                            {% else %}
                                                                {% if batch_deploy_status %}
                                                                    {% if jacoco_status %}
                                                                        <button class="btn btn-primary" type="button" id="jacoco_btn" disabled>统计覆盖率</button>
                                                                    {% endif %}
                                                                    <button class="btn btn-primary" type="button" id="edit_btn" disabled>编 辑</button>
                                                                    <button class="btn btn-primary" type="button" id="deploy_btn"disabled>部 署</button>
                                                                {% else %}
                                                                    {% if jacoco_status %}
                                                                        <button class="btn btn-primary" type="button" id="jacoco_btn" onclick="jacoco_exec('{{ pro_name }}','{{ nginx_api_proxy }}','{{ deploy_name }}')">统计覆盖率</button>
                                                                    {% endif %}
                                                                    <button class="btn btn-primary" type="button" id="edit_btn" onclick="fill_edit_frame('{{ pro_name }}','{{ nginx_api_proxy }}','{{ _id }}','{{ sonar_url }}','{{ jacoco_report_url }}','{{ apiTest_report_url }}')" data-toggle="modal" data-target="#edit_deploy_form">编 辑</button>
                                                                    <button class="btn btn-primary" type="button" id="deploy_btn" onclick="single_deploy('{{ pro_name }}','{{ nginx_api_proxy }}','{{ deploy_name }}', 'manual')">部 署</button>
                                                                {% endif %}
                                                            {% endif %}
                                                        </td>

                                                        {# Token #}
                                                        <td class="text-center" style="width: 50px; color:#4D0000; display:table-cell; vertical-align:middle;">
                                                            <input class="form-control" type="text" id="token">
                                                        </td>
                                                    </tr>
                                                {% endfor %}

                                                </tbody>

                                            </table>

                                        </div>

                                    </div>
                                </div>

                            </div>
                        </div>
                     </div>
               </div>
            </div>
        </div>

        <div style="position:fixed;right:50px; top:30px; width:20px; height:20px;cursor:pointer">
            <a href="../index">首页</a>
        </div>

        <!-- 回到顶部 -->
        <div style="position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
            <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true"></span></a>
        </div>

        <!-- 编辑用例窗口 -->

        <div id="edit_deploy_form" class="modal fade" tabindex="-1">
            <div class="modal-dialog">
                <div class="modal-content">

                    <div class="modal-header">
                        <button class="close" data-dismiss="modal">
                            <span>&times;</span>
                        </button>
                        <div class="modal-title">
                            <h2 class="text-center">编辑部署模块</h2>
                        </div>
                    </div>

                    <div class="modal-body">
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">ID：</label>
                            <label id="deploy_id_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">部署名称：</label>
                            <label id="deploy_name_edit"></label>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">构建环境：<font color="#DC143C">(必填)</font></label>
                                </div>
                                <div class="col-sm-4">
                                    <input class="form-control" type="text" style="text-align:center; text-align-last:center;" id="build_env_edit">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">部署序号：<font color="#DC143C">(必填)</font></label>
                                </div>
                                <div class="col-sm-4">
                                    <input class="form-control" type="text" style="text-align:center; text-align-last:center;" id="serial_num_edit">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">部署分支：<font color="#DC143C">(必填)</font></label>
                                </div>
                                <div class="col-sm-4">
                                    <input class="form-control" type="text" style="text-align:center; text-align-last:center;" id="branch_edit">
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;margin-top:2%;">运行状态：</label>
                            <label id="run_status_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">部署类型：</label>
                            <label id="deploy_type_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">部署文件：</label>
                            <label id="deploy_file_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">远程路径：</label>
                            <label id="remote_path_edit"></label>
                        </div>

                        <HR align="center" width="500" color="#987cb9" SIZE=1>

                        <div class="form-group">
                           <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">API 测试：</label>
                                </div>
                                <div class="col-sm-4">
                                    <div class="fg-line">
                                        <select class="form-control" style="text-align:center; text-align-last:center;" id="apiTest_status_edit">
                                            <option value=""></option>
                                            <option value="True">开启</option>
                                            <option value="False">关闭</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">API测试 hostTag：</label>
                                </div>
                                <div class="col-sm-4">
                                    <input class="form-control" type="text" style="text-align:center; text-align-last:center;" id="apiTest_hostTag_edit">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;margin-top:2%;">API测试报告地址：</label>
                            <a id="apiTest_report_edit" target="_blank" href=""></a>
                        </div>

                        <HR align="center" width="500" color="#987cb9" SIZE=1>

                        <div class="form-group">
                           <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">GitLab状态：</label>
                                </div>
                                <div class="col-sm-4" style="margin-bottom:4%;">
                                    <div class="fg-line">
                                        <select class="form-control" style="text-align:center; text-align-last:center;" id="gitlab_status_edit">
                                            <option value=""></option>
                                            <option value="True">开启</option>
                                            <option value="False">关闭</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <HR align="center" width="500" color="#987cb9" SIZE=1>

                        <div class="form-group">
                           <div class="col-sm-12">
                                <div class="col-sm-4" style="line-height:35px;">
                                    <label class="text-info">Sonar检测：</label>
                                </div>
                                <div class="col-sm-4">
                                    <div class="fg-line">
                                        <select class="form-control" style="text-align:center; text-align-last:center;" id="sonar_status_edit">
                                            <option value=""></option>
                                            <option value="True">开启</option>
                                            <option value="False">关闭</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;margin-top:2%;">Sonar_key：</label>
                            <label id="sonar_key_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Sonar_name：</label>
                            <label id="sonar_name_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Sonar_version：</label>
                            <label id="sonar_version_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Sonar_sources：</label>
                            <label id="sonar_sources_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Sonar_java_binaries：</label>
                            <label id="sonar_java_binaries_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Sonar地址：</label>
                            <a id="sonar_url_edit" target="_blank" href=""></a>
                        </div>

                        <HR align="center" width="500" color="#987cb9" SIZE=1>

                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Jacoco检测：</label>
                            <label id="jacoco_status_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Jacoco路径：</label>
                            <label id="jacoco_path_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Jacoco源码路径：</label>
                            <label id="jacoco_sourcefiles_path_edit"></label>
                        </div>
                        <div class="form-group">
                            <label class="text-info" style="margin-left:5%;">Jacoco地址：</label>
                            <a id="jacoco_url_edit" target="_blank" href=""></a>
                        </div>

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>关闭</button>
                        <button type="button" class="btn btn-primary" data-dismiss="modal" id="edit" onclick="edit_deploy_info('{{ pro_name }}','{{ nginx_api_proxy }}')"><span class="glyphicon glyphicon-floppy-disk"></span>更新</button>
                    </div>
                </div>
            </div>
        </div>

        <script src="/{{nginx_api_proxy}}/static/scripts/jquery.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/bootstrap.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/common.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/deploy.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/sweetalert.min.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/jquery.dataTables.js" type="text/javascript"></script>
        <script src="/{{nginx_api_proxy}}/static/scripts/dataTables.bootstrap.js" type="text/javascript"></script>

        <!-- 若当前有模块在部署，则实时更新该模块的进度信息 -->
        <script language="javascript" type="text/javascript">
            $(document).ready(update_module_progress('{{ pro_name }}','{{ nginx_api_proxy }}', '{{ module_is_run }}', '{{ deploy_name_list_str }}'))
        </script>

        <!-- 批量部署的进度更新 -->
        <script language="javascript" type="text/javascript">
            $(document).ready(update_batch_progress('{{ pro_name }}','{{ nginx_api_proxy }}', '{{ batch_deploy_status }}'))
        </script>

        <!-- 设置埋点，控制台显示页面的 '白屏时间' -->
        <script type="text/JavaScript">
            console.log("页面白屏时间 : " + (performance.timing['responseStart'] - performance.timing['navigationStart']).toString())
        </script>

    </body>
</html>
